<?
	try
	{
		$enlace = new PDO($_SESSION['db']['driver'] . ":host=" . $_SESSION['db']['host'] . ";dbname=" . $_SESSION['db']['name_db'], $_SESSION['db']['user'], $_SESSION['db']['pass']);
		$enlace->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	}
	catch(PDOException $e)
	{
		echo $e->getMessage();
		error(1);
	}	
?>